package cn.com.dycc.sys_manage.menusysmanagement.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;



public class Menu implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2760637206585010170L;
	private String menu_no;       //菜单号
	private String menu_name;	//菜单名称
	private String program;		//对应程序路径
	private String open_local;	//打开框架
	private String pid;		//父节点
	private String hidden;	//启用标志
	private Integer order_no;	//order_no
	private String menu_icon;	//菜单图标
	private String id_dro;		//是否可拖动
	private String sys_flag;	//平台标识   		1 PC电脑端   2 手机APP端    3 微信端
	private String h5_flag;		//源生或H5页面的标识		1 h5的页面    2 源生的页面	
	private String org_id;		//组织标识
	private Timestamp create_date;	//创建时间
	private String opt_user_id;		//创建人
	private String update_date;       //更新时间
	private String update_user_id;  //更新人
	
	
	public Menu(){}

	public Menu(String menu_no, String menu_name, String program, String open_local, String pid, String hidden,
			Integer order_no, String menu_icon, String id_dro, String sys_flag, String h5_flag, String org_id,
			Timestamp create_date, String opt_user_id, String update_date, String update_user_id) {
		super();
		this.menu_no = menu_no;
		this.menu_name = menu_name;
		this.program = program;
		this.open_local = open_local;
		this.pid = pid;
		this.hidden = hidden;
		this.order_no = order_no;
		this.menu_icon = menu_icon;
		this.id_dro = id_dro;
		this.sys_flag = sys_flag;
		this.h5_flag = h5_flag;
		this.org_id = org_id;
		this.create_date = create_date;
		this.opt_user_id = opt_user_id;
		this.update_date = update_date;
		this.update_user_id = update_user_id;
	}





	public String getMenu_no() {
		return menu_no;
	}


	public void setMenu_no(String menu_no) {
		this.menu_no = menu_no;
	}


	public String getMenu_name() {
		return menu_name;
	}


	public void setMenu_name(String menu_name) {
		this.menu_name = menu_name;
	}


	public String getProgram() {
		return program;
	}


	public void setProgram(String program) {
		this.program = program;
	}


	public String getOpen_local() {
		return open_local;
	}


	public void setOpen_local(String open_local) {
		this.open_local = open_local;
	}


	public String getPid() {
		return pid;
	}


	public void setPid(String pid) {
		this.pid = pid;
	}


	public String getHidden() {
		return hidden;
	}


	public void setHidden(String hidden) {
		this.hidden = hidden;
	}


	public Integer getOrder_no() {
		return order_no;
	}


	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}


	public String getMenu_icon() {
		return menu_icon;
	}


	public void setMenu_icon(String menu_icon) {
		this.menu_icon = menu_icon;
	}


	public String getId_dro() {
		return id_dro;
	}


	public void setId_dro(String id_dro) {
		this.id_dro = id_dro;
	}


	public String getSys_flag() {
		return sys_flag;
	}


	public void setSys_flag(String sys_flag) {
		this.sys_flag = sys_flag;
	}
	
	
	

	public String getH5_flag() {
		return h5_flag;
	}

	public void setH5_flag(String h5_flag) {
		this.h5_flag = h5_flag;
	}

	public String getOrg_id() {
		return org_id;
	}


	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Timestamp getCreate_date() {
		return create_date;
	}


	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}


	public String getOpt_user_id() {
		return opt_user_id;
	}


	public void setOpt_user_id(String opt_user_id) {
		this.opt_user_id = opt_user_id;
	}

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public String getUpdate_date() {
		return update_date;
	}


	public void setUpdate_date(String update_date) {
		this.update_date = update_date;
	}


	public String getUpdate_user_id() {
		return update_user_id;
	}


	public void setUpdate_user_id(String update_user_id) {
		this.update_user_id = update_user_id;
	}


	@Override
	public String toString() {
		return "Menu [menu_no=" + menu_no + ", menu_name=" + menu_name + ", program=" + program + ", open_local="
				+ open_local + ", pid=" + pid + ", hidden=" + hidden + ", order_no=" + order_no + ", menu_icon="
				+ menu_icon + ", id_dro=" + id_dro + ", sys_flag=" + sys_flag + ", h5_flag=" + h5_flag + ", org_id="
				+ org_id + ", create_date=" + create_date + ", opt_user_id=" + opt_user_id + ", update_date="
				+ update_date + ", update_user_id=" + update_user_id + "]";
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((menu_no == null) ? 0 : menu_no.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Menu other = (Menu) obj;
		if (menu_no == null) {
			if (other.menu_no != null)
				return false;
		} else if (!menu_no.equals(other.menu_no))
			return false;
		return true;
	}
	
}
